public class Reverse {
	public static void main(String[] args) {
		int[] a = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
		int i, c;
		for(i = 0; i < a.length; i++) {
			c = a[i];
			a[i] = a[a.length - 1 - i];
			a[a.length - 1 - i] = c;
		}
		for(i = 0; i < a.length; i++)
			System.out.print(a[i]+ " ");
	}
}